package com.amado.course23Extends.student.domain;
/**
 *  人的属性基类
 * @author Administrator
 *
 */
public class BasePerson {
	/**
	 * 年龄
	 */
	private Integer age;
	/**
	 * 性别0男，1女
	 */
	private Short sex;

	/**
	 * 姓名
	 */
	private String name;

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Short getSex() {
		return sex;
	}

	public void setSex(Short sex) {
		this.sex = sex;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public BasePerson() {
	}

	@Override
	public String toString() {
		return  age + "\t" + sex + "\t" + name;
	}

	public BasePerson(Integer age, Short sex, String name) {
		super();
		this.age = age;
		this.sex = sex;
		this.name = name;
	}
}
